<?php
namespace app\api\controller[FLEX];
use think\Db;
use app\api\model[FLEX]\[UTABLE] as [UTABLE]Model;
use services\JsonService;
use services\UtilService as Util;
use think\facade\Route as Url;
use services\FormBuilder as Form;
use app\admin\controller\AuthController;

class [CONTROLLER] {
    

    /**
     * 列表
     */
    public function list(){
       $page = request()->param('page/d',1);
       $limit = request()->param('limit/d',10);
       $list = [UTABLE]Model::page($page,$limit)->select();
       show(1,'success',$list??[]);
    }

    /**
     * 详情
     */
    public function detail(){
       if(!$id = request()->param('id/d')) show(0,'缺少参数');
       $detail = [UTABLE]Model::get($id);
       show(1,'success',$detail??'');
    }   

}